<?php
class MainAction extends AdminbaseAction{
	public function index(){
		//服务器信息
		$info=array(
			'操作系统' => PHP_OS,
			'运行环境' => $_SERVER["SERVER_SOFTWARE"],
			'PHP运行方式' => php_sapi_name(),
			'MYSQL版本' => mysql_get_server_info(),
			'ZeroXCMS版本' => ZEROXCMS_VERSION . "&nbsp;&nbsp;&nbsp; [<a href='http://www.0x999.com' target='_blank'>访问官网</a>]",
			'上传附件限制' => ini_get('upload_max_filesize'),
			'执行时间限制' => ini_get('max_execution_time') . "秒",
			'剩余空间' => round((@disk_free_space(".") / (1024 * 1024)), 2) . 'M',
		);
		$this->assign('server_info', $info);
        $this->display();
	}
}
?>